package de.vogella.jface.treeviewer.model;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

public class ServiceIndexQueryModel implements IEditorInput{
	private	 int id;
	private String cropname;
	private String cropid;
	private String growthname;
	private String growthid;
	private String disatername;
	private String disaterid;
	private String disaterdesc;
	

	public String getDisaterdesc() {
		return disaterdesc;
	}

	public void setDisaterdesc(String disaterdesc) {
		this.disaterdesc = disaterdesc;
	}

	public String getCropid() {
		return cropid;
	}

	public void setCropid(String cropid) {
		this.cropid = cropid;
	}

	public String getGrowthid() {
		return growthid;
	}

	public void setGrowthid(String growthid) {
		this.growthid = growthid;
	}

	public String getDisaterid() {
		return disaterid;
	}

	public void setDisaterid(String disaterid) {
		this.disaterid = disaterid;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	public String getCropname() {
		return cropname;
	}

	public void setCropname(String cropname) {
		this.cropname = cropname;
	}

	public String getGrowthname() {
		return growthname;
	}

	public void setGrowthname(String growthname) {
		this.growthname = growthname;
	}

	public String getDisatername() {
		return disatername;
	}

	public void setDisatername(String disatername) {
		this.disatername = disatername;
	}

	public Object getAdapter(Class adapter) {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean exists() {
		// TODO Auto-generated method stub
		return false;
	}

	public ImageDescriptor getImageDescriptor() {
		// TODO Auto-generated method stub
		return null;
	}

	public String getName() {
		// TODO Auto-generated method stub
		return null;
	}

	public IPersistableElement getPersistable() {
		// TODO Auto-generated method stub
		return null;
	}

	public String getToolTipText() {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ServiceIndexQueryModel other = (ServiceIndexQueryModel) obj;
		if (id != other.id)
			return false;
		return true;
	}

}

